package com.sleep.getexcel.controller;

import com.sleep.getexcel.service.GetExcelService;
import com.sleep.getexcel.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luyakun
 */
@RestController
@RequestMapping
public class GetExcelController {
    @Autowired
    private GetExcelService getExcelService;

    @GetMapping("get")
    public Result getExcel() {
        return getExcelService.readExcel("C:\\Users\\luyakun\\Desktop\\轧钢数据标签.xlsx");
    }

    @GetMapping("plus")
    public Result getExcelPlus() {
        return getExcelService.readExeclPlus("C:\\Users\\luyakun\\Desktop\\轧钢原子指标.xlsx");
    }

    @GetMapping("kz")
    public Result getExcelKZ() {
        return getExcelService.readExeclKZ("C:\\Users\\luyakun\\Desktop\\轧钢扩展指标 (2).xlsx");
    }

}
